package com.os.ch2.event;

import org.springframework.context.ApplicationEvent;

/**
 * @Author Matt
 * @Date 2022-01-11
 * @Desc:
 * @Version V1.0
 */
public class DemoEvent extends ApplicationEvent {

    public static final long serialVersionUID = 1L;
    private String msg;

    public DemoEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }
}
